Tegra186: use common 'BL31_BASE' variable
authorVarun Wadekar <[email protected]>
Fri, 11 Jan 2019 18:48:47 +0000 (10:48 -0800)
committerVarun Wadekar <[email protected]>
Thu, 7 Feb 2019 16:47:42 +0000 (08:47 -0800)
This patch modfies the 'tegra_soc_pwr_domain_power_down_wfi' handler
to use BL31_BASE variable, provided by bl_common.h

Change-Id: I9747228d0193c1ae6999284458b9f866955a61a2
Signed-off-by: Varun Wadekar <[email protected]>
plat/nvidia/tegra/soc/t186/plat_psci_handlers.c

index 09e257d53fba750cbf6e8a5eebf2e9e225c63f9a..11394c0ce457c57f47d4066bfada579c75b1a874 100644 (file)
@@ -283,7 +283,7 @@ int32_t tegra_soc_pwr_domain_power_down_wfi(const psci_power_state_t *target_sta
                val = params_from_bl2->tzdram_base +
                        tegra186_get_cpu_reset_handler_size();
                memcpy16((void *)(uintptr_t)val, (void *)(uintptr_t)BL31_BASE,
-                        (uintptr_t)&__BL31_END__ - (uintptr_t)BL31_BASE);
+                        (uintptr_t)BL31_END - (uintptr_t)BL31_BASE);
        }
 
        return PSCI_E_SUCCESS;